﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for NguoiDungBUS
/// </summary>
public class NguoiDungBUS
{
	private NguoiDungDAO objNguoiDungDAO;
    public NguoiDungBUS(string strPath)
    {
        objNguoiDungDAO = new NguoiDungDAO(strPath);
    }
    public DataSet SelectNguoiDung(Guid id)
    {
        DataSet ds;
        try
        {
            ds = objNguoiDungDAO.SelectNguoiDung(id);
            return ds;
        }
        catch (System.Exception e)
        {
            throw new Exception(e.Message, e.InnerException);
        }
    }
    public Boolean UpdateNguoiDung(NguoiDungDTO nd)
    {
        try
        {
            return objNguoiDungDAO.UpdateNguoiDung(nd);
        }
        catch (System.Exception e)
        {
            throw new Exception(e.Message, e.InnerException);
        }
    }
    public Boolean InsertNguoiDung(Guid id)
    {
        try
        {
            return objNguoiDungDAO.InsertNguoiDung(id);
        }
        catch (System.Exception e)
        {
            throw new Exception(e.Message, e.InnerException);
        }
    }
}
